<?php

/**
 * Description of OrderStateConfirmed
 *
 * @author nikolay
 */
class OrderStateConfirmed extends OrderState {

    public function startProcessing() {
        $this->order->state = Order::STATE_IN_PROCESSING;
        if ($this->order->save(false, array('state', 'update_time')))
            $this->machine->transition(Order::STATE_IN_PROCESSING);
    }

}